package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("repair_goods")
public class RepairGoodsDO {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer serviceId;
    private Date time;
    private String customer;
    private String phone;
    private Integer shopId;
    private String barCode;
    private String problem;
    private Long repairId; // 对应（返厂、第三方）维修单记录id
    private String repairType; // 维修方式
    private BigDecimal cost; // 花费

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public String getProblem() {
        return problem;
    }

    public void setProblem(String problem) {
        this.problem = problem;
    }

    public Long getRepairId() {
        return repairId;
    }

    public void setRepairId(Long repairId) {
        this.repairId = repairId;
    }

    public String getRepairType() {
        return repairType;
    }

    public void setRepairType(String repairType) {
        this.repairType = repairType;
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    @Override
    public String toString() {
        return "RepairGoodsDO{" +
                "id=" + id +
                ", serviceId=" + serviceId +
                ", time=" + time +
                ", customer='" + customer + '\'' +
                ", phone='" + phone + '\'' +
                ", shopId=" + shopId +
                ", barCode='" + barCode + '\'' +
                ", problem='" + problem + '\'' +
                ", repairId=" + repairId +
                ", repairType='" + repairType + '\'' +
                ", cost=" + cost +
                '}';
    }
}
